package com.ly.demo.smsriskmanager;

/**
 * 包    名 ：com.vantai.dataplatform.ums.common.enums
 * 文 件 名 : ResponseCodeEnum
 * 描    述 : TODO
 * 作    者 ：zhaow zhaow
 * 创建时间 ：2021/6/21 15:28
 * 版    本 ：1.0
 */

public enum ResponseCodeEnum {
    SUCCESSFULLY("00000", "调用成功", "正确执行后的返回"), USER_ERROR("A0001", "用户端错误", "一级宏观错误码"), USER_REG_ERROR("A0100",
        "用户注册错误", "二级宏观错误码"), USER_PRIVATE_ERROR("A0101", "用户未同意隐私协议", ""), USER_AREA_ERROR("A0102", "注册国家或地区受限",
        ""), USER_NAME_ERROR("A0110", "用户名校验失败", ""), USER_NAME_EXIST("A0111", "用户名已存在", ""), USER_WORD_ERROR("A0112",
        "用户名包含敏感词", ""), USER_SENSITIVE_ERROR("A0113", "用户名包含特殊字符", ""), PASSWORD_ERROR("A0120", "密码校验失败",
        ""), PASSWORD_LENGTH_ERROR("A0121", "密码长度不够", ""), PASSWORD_NO_STRONG_ERROR("A0122", "密码强度不够",
        ""), VERIFY_CODE_ERROR("A0130", "校验码输入错误", ""), VERIFY_CODE_SMS_ERROR("A0131", "短信校验码输入错误",
        ""), VERIFY_CODE_MAIL_ERROR("A0132", "邮件校验码输入错误", ""), VERIFY_CODE_VOICE_ERROR("A0133", "语音校验码输入错误",
        ""), USER_CREDENTIALS_ERROR("A0140", "用户证件异常", ""), USER_TYPE_ERROR("A0141", "用户证件类型未选择", ""), USER_CARD_ERROR(
        "A0142", "大陆身份证编号校验非法", ""), USER_PASSPORT_ERROR("A0143", "护照编号校验非法", ""), USER_OFFICER_ERROR("A0144",
        "军官证编号校验非法", ""), USER_INFO_ERROR("A0150", "用户基本信息校验失败", ""), PHONE_ERROR("A0151", "手机格式校验失败",
        ""), ADDRESS_ERROR("A0152", "地址格式校验失败", ""), MAIL_ERROR("A0153", "邮箱格式校验失败", ""), USER_LOGIN_ERROR("A0200",
        "用户登录异常", ""), USER_NOT_EXIST("A0201", "用户账户不存在", ""), USER_LOCKED_ERROR("A0202", "用户账户被冻结",
        ""), USER_INVALID_ERROR("A0203", "用户账户已作废", ""), USER_PASSWORD_ERROR("A0210", "用户密码错误",
        ""), USER_PASSWORD_LIMIT_ERROR("A0211", "用户输入密码错误次数超限", ""), USER_VERIFY_ERROR("A0220", "用户身份校验失败",
        ""), USER_FINGER_ERROR("A0221", "用户指纹识别失败", ""), USER_FACE_ERROR("A0222", "用户面容识别失败", ""), USER_THIRD_ERROR(
        "A0223", "用户未获得第三方登录授权", ""), USER_LOGIN_EXPIRE_ERROR("A0230", "用户登录已过期", ""), USER_VERIFY_CODE_ERROR("A0240",
        "用户验证码错误", ""), USER_VERIFY_CODE_LIMIT_ERROR("A0241", "用户验证码尝试次数超限", ""), USER_VERIFY_CODE_FREQUENTLY_ERROR(
        "A0242", "用户验证码获取频繁", ""), USER_NOT_ID_VERIFY("A0242", "用户未进行实人认证", ""), ACCESS_DENIED_EXCEPTION("A0300",
        "访问权限异常", "二级宏观错误码"), ACCESS_DENIED("A0301", "访问未授权", ""), ACCESS_PROCESSING("A0302", "正在授权中",
        ""), ACCESS_REFUSED("A0303", "用户授权申请被拒绝", ""), ACCESS_PRIVATE_DENIED("A0310", "因访问对象隐私设置被拦截",
        ""), TOKEN_EXPIRED("A0311", "授权已过期", ""), API_DENIED("A0312", "无权限使用 API", ""), USER_ACCESS_DENIED("A0320",
        "用户访问被拦截", ""), ACCOUNT_BLACK_LIST("A0321", "黑名单用户", ""), ACCOUNT_LOCKED("A0322", "账号被冻结", ""), IP_ILLEGAL(
        "A0323", "非法 IP 地址", ""), GATEWAY_RESTRICTED("A0324", "网关访问受限", ""), AREA_BLACK_LIST("A0325", "地域黑名单",
        ""), USER_BLACK_LIST("A0330", "黑名单用户", ""), USER_SIGNATURE_ERROR("A0340", "用户签名异常", ""), RAS_SIGNATURE_ERROR(
        "A0341", "RSA 签名错误", ""), ILLEGAL_ARGUMENT_EXCEPTION("A0400", "用户请求参数错误", "二级宏观错误码"), USER_INPUT_ERROR("A0402",
        "无效的用户输入", ""), REQUIRED_NULL("A0410", "请求必填参数为空", ""), ORDER_NO_ERROR("A0411", "用户订单号为空", ""), QUANTITY_NULL(
        "A0412", "订购数量为空", ""), TIMESTAMP_NULL("A0413", "缺少时间戳参数", ""), ILLEGAL_TIMESTAMP("A0414", "非法的时间戳参数",
        ""), ORDER_NOT_EXIST("A0415", "用户订单不存在", ""), ENGINEER_EQUAL_ERROR("A0416", "两个维修工程师不能一样",
        ""), PARAMETER_IS_OUT_SERVICE("A0420", "请求参数值超出允许的范围", ""), PARAMETER_FORMAT_MISMATCH("A0421", "参数格式不匹配",
        ""), ADDRESS_IS_OUT_SERVICE("A0422", "地址不在服务范围", ""), TIME_IS_OUT_SERVICE("A0423", "时间不在服务范围",
        ""), AMOUNT_LIMIT("A0424", "金额超出限制", ""), QUANTITY_LIMIT("A0425", "数量超出限制", ""), REQUEST_TOTAL_LIMIT("A0426",
        "请求批量处理总个数超出限制", ""), JSON_PARSE_ERROR("A0427", "请求 JSON 解析失败", ""), USER_INPUT_ILLEGAL("A0430", "用户输入内容非法",
        ""), FILE_COPYRIGHT_ERROR("A0433", "文件侵犯版权", ""), USER_OPERATE_ERROR("A0440", "用户操作异常", ""), USER_PAY_TIMEOUT(
        "A0441", "用户支付超时", ""), ORDER_TIMEOUT("A0442", "确认订单超时", ""), ORDER_CLOSED("A0443", "订单已关闭", ""), REQUEST_ERROR(
        "A0500", "用户请求服务异常", "二级宏观错误码"), REQUEST_LIMIT("A0501", "请求次数超出限制", ""), REQUEST_COMPLICATION_LIMIT("A0502",
        "请求并发数超出限制", ""), USER_OPERATE_WAIT("A0503", "用户操作请等待", ""), WEB_SOCKET_ERROR("A0504", "WebSocket 连接异常",
        ""), WEB_SOCKET_DISCONNECT("A0505", "WebSocket 连接断开", ""), USER_REQUEST_REPEAT("A0506", "用户重复请求",
        ""), USER_RESOURCE_ERROR("A0600", "用户资源异常", "二级宏观错误码"), USER_BALANCE_NOT_ENOUGH("A0601", "账户余额不足",
        ""), USER_STORAGE_NOT_ENOUGH("A0602", "用户磁盘空间不足", ""), USER_RAM_NOT_ENOUGH("A0603", "用户内存空间不足",
        ""), USER_OSS_NOT_ENOUGH("A0604", "用户 OSS 容量不足", ""), USER_QUOTA_USE_UP("A0605", "用户配额已用光",
        ""), USER_FILE_ERROR("A0700", "用户上传文件异常", "二级宏观错误码"), USER_FILE_MISMATCH("A0701", "用户上传文件类型不匹配",
        ""), USER_FILE_TOO_LARGE("A0702", "用户上传文件太大", ""), USER_IMAGE_TOO_LARGE("A0703", "用户上传图片太大",
        ""), USER_PHOTO_TOO_LARGE("A0704", "用户上传视频太大", ""), USER_COMPRESS_FILE_TOO_LARGE("A0705", "用户上传压缩文件太大",
        ""), USER_FILE_NOT_EXIST("A0706", "文件不存在", ""), USER_VERSION_ERROR("A0800", "用户当前版本异常",
        "二级宏观错误码"), USER_VERSION_MISMATCH("A0801", "用户安装版本与系统不匹配", ""), USER_VERSION_DOWN("A0802", "用户安装版本过低",
        ""), USER_VERSION_UP("A0803", "用户安装版本过高", ""), USER_VERSION_EXPIRED("A0804", "用户安装版本已过期",
        ""), USER_API_VERSION_MISMATCH("A0805", "用户 API 请求版本不匹配", ""), USER_API_VERSION_UP("A0806", "用户 API 请求版本过高",
        ""), USER_API_VERSION_DOWN("A0807", "用户 API 请求版本过低", ""), USER_PRIVATE_DENIED("A0900", "用户隐私未授权",
        "二级宏观错误码"), USER_PRIVATE_NOT_SIGNED("A0901", "用户隐私未签署", ""), USER_WEBCAM_DENIED("A0902", "用户摄像头未授权",
        ""), USER_CAMERA_DENIED("A0903", "用户相机未授权", ""), USER_PHOTO_DENIED("A0904", "用户图片库未授权", ""), USER_FILE_DENIED(
        "A0905", "用户文件未授权", ""), USER_POSITION_DENIED("A0906", "用户位置信息未授权", ""), USER_ADDRESS_BOOK_DENIED("A0907",
        "用户通讯录未授权", ""), USER_DEVICE_ERROR("A1000", "用户设备异常", "二级宏观错误码"), USER_CAMERA_ERROR("A1001", "用户相机异常",
        ""), USER_MIC_ERROR("A1002", "用户麦克风异常", ""), USER_EARPIECE_ERROR("A1003", "用户听筒异常", ""), USER_SPEAKER_ERROR(
        "A1004", "用户扬声器异常", ""), USER_GPS_ERROR("A1005", "用户 GPS 定位异常", ""), PROCESS_NOT_EXIST("A1101", "流程不存在",
        ""), ENGINEER_NOT_EXIST("A1201", "工程师不存在", ""), SYSTEM_EXECUTE_ERROR("B0001", "系统执行出错",
        "一级宏观错误码"), SYSTEM_EXECUTE_TIMEOUT("B0100", "系统执行超时", "二级宏观错误码"), SYSTEM_ORDER_TIMEOUT("B0101", "系统订单处理超时",
        ""), SYSTEM_RECOVERY_UP("B0200", "系统容灾功能被触发", "二级宏观错误码"), SYSTEM_LIMIT("B0210", "系统限流", ""), SYSTEM_DEMOTE(
        "B0220", "系统功能降级", ""), SYSTEM_RESOURCE_EXCEPTION("B0300", "系统资源异常", ""), SYSTEM_RESOURCE_USE_UP("B0310",
        "系统资源耗尽", ""), SYSTEM_STORAGE_USE_UP("B0311", "系统磁盘空间耗尽", ""), SYSTEM_RAM_USE_UP("B0312", "系统内存耗尽",
        ""), FILE_USE_UP("B0313", "文件句柄耗尽", ""), SYSTEM_POOL_ERROR("B0314", "系统连接池耗尽", ""), SYSTEM_THREAD_POOL_ERROR(
        "B0315", "系统线程池耗尽", ""), SYSTEM_RESOURCE_ERROR("B0320", "系统资源访问异常", ""), SYSTEM_READ_ERROR("B0321",
        "系统读取磁盘文件失败", ""), DATA_NOT_EXIST("B0322", "数据不存在", ""), THIRD_ERROR("C0001", "调用第三方服务出错",
        "一级宏观错误码"), MIDDLEWARE_ERROR("C0100", "中间件服务出错", "二级宏观错误码"), RPC_ERROR("C0110", "RPC 服务出错", ""), RPC_NOT_FOUND(
        "C0111", "RPC 服务未找到", ""), RPC_NOT_REGISTER("C0112", "RPC 服务未注册", ""), API_NOT_EXIST("C0113", "接口不存在",
        ""), MESSAGE_ERROR("C0120", "消息服务出错", ""), MESSAGE_SEND_ERROR("C0121", "消息投递出错", ""), MESSAGE_CONSUME_ERROR(
        "C0122", "消息消费出错", ""), MESSAGE_SUBSCRIBE_ERROR("C0123", "消息订阅出错", ""), MESSAGE_GROUP_NOT_EXIST("C0124",
        "消息分组未查到", ""), CACHE_ERROR("C0130", "缓存服务出错", ""), KEY_LENGTH_LIMIT("C0131", "key 长度超过限制",
        ""), VALUE_LENGTH_LIMIT("C0132", "value 长度超过限制", ""), STORAGE_FULL("C0133", "存储容量已满", ""), DATA_NOT_SUPPORTED(
        "C0134", "不支持的数据格式", ""), CONFIG_ERROR("C0140", "配置服务出错", ""), NETWORK_ERROR("C0150", "网络资源服务出错",
        ""), VPN_ERROR("C0151", "VPN 服务出错", ""), CDN_ERROR("C0152", "CDN 服务出错", ""), DNS_ERROR("C0153", "域名解析服务出错",
        ""), GATEWAY_ERROR("C0154", "网关服务出错", ""), THIRD_EXECUTE_TIMEOUT("C0200", "第三方系统执行超时", "二级宏观错误码"), RPC_TIMEOUT(
        "C0210", "RPC 执行超时", ""), MESSAGE_TIMEOUT("C0220", "消息投递超时", ""), CACHE_TIMEOUT("C0230", "缓存服务超时",
        ""), CONFIG_TIMEOUT("C0240", "配置服务超时", ""), DATABASE_TIMEOUT("C0250", "数据库服务超时", ""), DATABASE_ERROR("C0300",
        "数据库服务出错", "二级宏观错误码"), TABLE_NOT_EXIST("C0311", "表不存在", ""), COLUMN_NOT_EXIST("C0312", "列不存在",
        ""), TOO_MANY_COLUMNS("C0321", "多表关联中存在多个相同名称的列", ""), DATABASE_DEADLOCK("C0331", "数据库死锁",
        ""), DUPLICATE_PRIMARY_KEY("C0341", "主键冲突", "二级宏观错误码"), THIRD_RECOVERY("C0400", "第三方容灾系统被触发",
        "二级宏观错误码"), THIRD_LIMIT("C0401", "第三方系统限流", ""), THIRD_DEMOTE("C0402", "第三方功能降级", ""), NOTICE_ERROR("C0500",
        "通知服务出错", "二级宏观错误码"), NOTICE_SMS_FAILED("C0501", "短信提醒服务失败", ""), NOTICE_VOICE_FAILED("C0502", "语音提醒服务失败",
        ""), NOTICE_MAIL_FAILED("C0503", "邮件提醒服务失败", ""), ROLE_NOT_FAILED("D0001", "管理员无角色权限", ""), ROLE_FAILED("D0002",
        "用户无角色", ""), USER_TO_FAILED("D0003", "用户关系存在", ""), ADMIN_LOGIN_FAILED("D0004", "管理员登录名存在",
        ""), ROLE_CODE_FAILED("D0005", "角色码存在", ""), BANKCARD_STATE_ERROR("D0011", "银行卡首选状态传入错误",
        ""), BANKCARD_USE_REPEAT("D0012", "银行卡已存在", ""), BANKCARD_VERIFY_ERROR("D0013", "银行卡认证错误",
        ""), BANKCARD_RECOGNITION_ERROR("D0014", "银行卡识别错误", ""), USER_ME_FAILED("D0006", "用户关系不能添加自己",
        ""), BUSER_VERIFY_FAILED("D0007", "企业未认证", ""), PHONE_VERIFY_FAILED("D0008", "手机号已经占用", ""), APP_JPUSH_FAILED(
        "D0009", "APP推送失败", "");

    private String code;
    private String message;
    private String description;

    private ResponseCodeEnum(String code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
